﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/static/include/topLess.jsp"%>
<script type="text/javascript">

function repWin(id){
	openWin("查看详情","${baseURL}/monitor/pmreply?id="+id,600,500);
	//window.open("pmreply?id="+id, "viewwindow", "width=500,height=600")
}
function closeWin(){
	parent.layer.closeAll();
}
function openViewWin(fileName,temUrl){
	var fName = encodeURIComponent(encodeURIComponent(fileName));
	//var url = "http://localhost:8080/jsme-das-lan/indicator-stat.do?method=fileTemple&provinceId=" + pathName + "&cityId=" + fName;
	var url = temUrl + fName;
	var tit = "下载";
	//alert(url);
	//openWin(tit,url,500,500);
	
	var iframe = document.createElement("iframe");
	iframe.src = url;
	iframe.style = "display:none";
	document.getElementById("div1").appendChild(iframe);
	
}
</script>

<table id="listTable">
<tbody>
<tr>
<th colspan="2"><img src="${ctx}/static/images/pages/cen/rig/ico_02.png" align="absmiddle">&nbsp;查看消息</th>
</tr> 
<tr>
<td class="tab_td_all" width="50%">发件人：${pmFromName}</td>
</tr>
<tr>
<td class="tab_td_all">标题：${title}</td>
</tr>
<tr>
<td class="tab_td_all">内容：${content}</td>
</tr>
<c:forEach var="attch" items="${AttchList}" varStatus="status">
<tr>
<td class="tab_td_all">附件${status.index+1}：<a href="#" onclick="openViewWin('${attch.attachFilename}','${baseURL}/indicator-stat.do?method=fileTemple&provinceId=${attch.attachPathname}&cityId=${attch.attachFilename}')">${attch.attachFilename}</a></td>
</tr>
 </c:forEach>
 <tr>
<td class="tab_td_all" align="center" colspan="2"><input class="tab_but" type="button" value="回复"
				onclick="repWin('${id}');" /><input class="tab_but" type="button" value="关闭"
				onclick="closeWin();" /></td>
</tr>
 </tbody>
</table>
<div id="div1" style="display:none"></div>
<%@ include file="/static/include/bottom.jsp"%>